package model;

import util.Toolsutil;


/**
 * TUser entity. @author MyEclipse Persistence Tools
 */

public class TUser implements java.io.Serializable {

	// Fields

	private String userid;
	private String username;
	private String realname;
	private Integer roleid;
	private String pwd;
	private String phone;
	private Integer photoid;
	private Integer status;
	private String lastlogindate;
	private String createtime;
	private Integer loginstatus;
	private String note;
	private Integer departmentid;

	// Constructors

	/** default constructor */
	public TUser() {
	}

	/** minimal constructor */
	public TUser(String userid) {
		this.userid = userid;
	}

	/** full constructor */
	public TUser(String userid, String username, String realname,
			Integer roleid, String pwd, String phone, Integer photoid,
			Integer status, String lastlogindate, String createtime,
			Integer loginstatus, String note, Integer departmentid) {
		this.userid = userid;
		this.username = username;
		this.realname = realname;
		this.roleid = roleid;
		this.pwd = pwd;
		this.phone = phone;
		this.photoid = photoid;
		this.status = status;
		this.lastlogindate = lastlogindate;
		this.createtime = createtime;
		this.loginstatus = loginstatus;
		this.note = note;
		this.departmentid = departmentid;
	}

	// Property accessors

	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getRealname() {
		return this.realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public Integer getRoleid() {
		return this.roleid;
	}

	public void setRoleid(Integer roleid) {
		this.roleid = roleid;
	}

	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getPhotoid() {
		return this.photoid;
	}

	public void setPhotoid(Integer photoid) {
		this.photoid = photoid;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getLastlogindate() {
		return this.lastlogindate;
	}

	public void setLastlogindate(String lastlogindate) {
		this.lastlogindate = lastlogindate;
	}

	public String getCreatetime() {
		return Toolsutil.GetDateFormat(createtime);
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	public Integer getLoginstatus() {
		return this.loginstatus;
	}

	public void setLoginstatus(Integer loginstatus) {
		this.loginstatus = loginstatus;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Integer getDepartmentid() {
		return this.departmentid;
	}

	public void setDepartmentid(Integer departmentid) {
		this.departmentid = departmentid;
	}

}